# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=py3-mopidy-subidy
_pyname=Mopidy-Subidy
pkgver=1.0.0
pkgrel=0
pkgdesc="Mopidy extension for playing music from Subsonic servers"
url="https://github.com/Prior99/mopidy-subidy"
arch="noarch"
license="BSD-3-Clause"
depends="python3 mopidy py3-pykka py3-pysonic"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="eb0068646c8865d7be62f0c4075cc97dedd8dd52d96f5fa55f9626ca90e00b89211fac48d470f615066584c19dcbe8f4ef18a9dbfe3e2f3a57c96349272cfb36  Mopidy-Subidy-1.0.0.tar.gz"
